package com.hysf.utils;

import com.hysf.pojo.Account;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class AccountRowMapper implements RowMapper<Account> {
	
	@Override
	public Account mapRow(ResultSet rs, int rowNum) throws SQLException {
		Account account = new Account();
		account.setAccountid(rs.getInt("accountid"));
		account.setBalance(rs.getDouble("balance"));
		return account;
	}
}
